package com.dongdongshop.mapper.address;

import com.dongdongshop.pojo.order.TbOrder;
import com.dongdongshop.pojo.order.TbOrderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbOrderMapper {
    int countByExample(TbOrderExample example);

    int deleteByExample(TbOrderExample example);

    int deleteByPrimaryKey(Long orderId);

    int insert(TbOrder record);

    int insertSelective(TbOrder record);

    List<TbOrder> selectByExample(TbOrderExample example);

    TbOrder selectByPrimaryKey(Long orderId);

    int updateByExampleSelective(@Param("record") TbOrder record, @Param("example") TbOrderExample example);

    int updateByExample(@Param("record") TbOrder record, @Param("example") TbOrderExample example);

    int updateByPrimaryKeySelective(TbOrder record);

    int updateByPrimaryKey(TbOrder record);

    List<TbOrder> selectByPayOrder(long payOrder);

    void updateAlipayOrderByPayOrder(@Param("out_trade_no")String out_trade_no,  @Param("trade_no") String trade_no);

    List<TbOrder> selectOrderByUserId(String username);

    List<TbOrder> selectComment(String username);
}